﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace MapTool
{
    public class Rules
    {
        private ResultEnum result;
        private readonly SeColor _setColor = new() { A = 255, R = 255, G = 0, B = 0 };
        private string key = "";


        public Rules(ResultEnum InresultEnum, string InKey)
        {
            Result= InresultEnum;
            Key = InKey;
          
        }

        public Rules(ResultEnum InresultEnum, string InKey ,Color color )
        {
            Result = InresultEnum;
            Key = InKey;
            SetColor = color;
        }

        public Color SetColor
        {
            get => _setColor.S2Color();
            set => _setColor.C2S(value);
        }

 

        public ResultEnum Result
        {
            get { return result; }
            set => result = value;
        }

        public string Key
        {
            get { return key; }
            set => key = value;
        }
    }
}
